<div id="sf_admin_container">
    <h1>Importer un fichier csv</h1>

    <?php if($form->hasErrors()) :?>
    <div class="error">L'objet n'a pu être mis à jour.</div>
    <?php endif;?>

    <form method="post" target="uploadFrame" name="<?php echo $form->getName()?>"action="<?php echo url_for($sf_request->getUri()) ?>" <?php $form->isMultipart() and print 'enctype="multipart/form-data"' ?>>
        <table>
            <tr>
                <td colspan="2"><?php echo $form['datetime_points']->renderError(); ?></td>
            </tr>
            <tr>
                <th><?php echo $form['datetime_points']->renderLabel('Date de mise à jour des points :'); ?></th>
                <td><?php echo $form['datetime_points']->render(); ?></td>
            </tr>
            <tr>
                <td colspan="2"><?php echo $form['file']->renderError(); ?></td>
            </tr>
            <tr>
                <th><?php echo $form['file']->renderLabel('Fichier csv :'); ?></th>
                <td><?php echo $form['file']->render(); ?></td>
            </tr>
            <tr>
                <td colspan="2">
                    <em><?php echo $form['file']->renderHelp(); ?></em>
                </td>
            </tr>
            <tr>
                <td class="submit" colspan="2">
                    <?php echo $form->renderHiddenFields() ?>
                    <input type="submit" value="Soumettre l'import" />
                </td>
            </tr>
        </table>
    </form>

</div>